#pragma once
#include <iostream>
#include <vector>
using std::vector;

enum attribute
{
    ATTR_NULL,
    ATTR_OPEN,
    ATTR_CLOSE,
    ATTR_FORBID,
    //打印地图用到 最短路径的每个节点的属性是它
    ATTR_RIGHT,
    ATTR_REMOVE
};

#define MAP_ROW 9
#define MAP_COLUMN 9

#define STEP_LENGTH 10

struct Nodeas
{
    
    int x;
    int y;
    //从起点移动到当前节点的长度
    int g;
    //当前节点到终点的估算长度
    int h;
    //状态
    int attr;
    struct Nodeas *parent;
};
void print_path(Nodeas *node);
void print_map(Nodeas _map[MAP_ROW][MAP_COLUMN]);
static bool comp_f(Nodeas *a, Nodeas *b);
